package com.lantosec.hmrp.modules.eval.service;

import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.core.kit.tree.TreeNodeVo;
import com.lantosec.hmrp.modules.eval.entity.EvalType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lantosec.hmrp.modules.eval.vo.EvalTypeVO;

import java.util.List;

/**
 * <p>
 * 考评项目分类定义 服务类
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-13
 */
public interface IEvalTypeService extends IService<EvalType> {
    /**
     * 分页条件查询
     * @param page
     * @param evalTypeName
     * @return
     */
    public PageVO<EvalType> page(PageVO<EvalType> page, String evalTypeName);

    /**
     * 更新排序值
     */
    public void updateOrder(String evalTypeId,int evalTypeOrder);

    /**
     *
     * @return
     */
    String queryMaxId(String parentId);

    /**
     * 新增考评项目分类
     * @param entity
     * @return
     */
    String saveEvalType(EvalType entity);

    /**
     * 修改考评项目分类
     * @param entity
     * @return
     */
    void updateEvalType(EvalType entity);

    /**
     * 查询全部分类即分类下的项目
     * @return
     */
    List<EvalTypeVO> getAll(String evalTypeName);

    List<TreeNodeVo> getTree(String id);

    List<EvalTypeVO> getByEvalTarget(Integer evalTarget);

    List<EvalTypeVO> getByEvalTargetApply(Integer evalTarget);
}
